package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 用户小部件定制
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpPortletUser extends Model<JbdpPortletUser> {

    private static final long serialVersionUID=1L;

    /**
     * 用户部件主键
     */
    @TableId("PORTLET_USER_ID")
    private String portletUserId;

    /**
     * 部件主键
     */
    @TableField("PORTLET_ID")
    private String portletId;

    /**
     * 部件名称
     */
    @TableField("PORTLET_NAME")
    private String portletName;

    /**
     * 布局列位置
     */
    @TableField("COL")
    private Integer col;

    /**
     * 布局列顺序
     */
    @TableField("SEQ")
    private Integer seq;

    /**
     * 用户ID
     */
    @TableField("USER_ID")
    private String userId;


    public String getPortletUserId() {
        return portletUserId;
    }

    public JbdpPortletUser setPortletUserId(String portletUserId) {
        this.portletUserId = portletUserId;
        return this;
    }

    public String getPortletId() {
        return portletId;
    }

    public JbdpPortletUser setPortletId(String portletId) {
        this.portletId = portletId;
        return this;
    }

    public String getPortletName() {
        return portletName;
    }

    public JbdpPortletUser setPortletName(String portletName) {
        this.portletName = portletName;
        return this;
    }

    public Integer getCol() {
        return col;
    }

    public JbdpPortletUser setCol(Integer col) {
        this.col = col;
        return this;
    }

    public Integer getSeq() {
        return seq;
    }

    public JbdpPortletUser setSeq(Integer seq) {
        this.seq = seq;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public JbdpPortletUser setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.portletUserId;
    }

    @Override
    public String toString() {
        return "JbdpPortletUser{" +
        "portletUserId=" + portletUserId +
        ", portletId=" + portletId +
        ", portletName=" + portletName +
        ", col=" + col +
        ", seq=" + seq +
        ", userId=" + userId +
        "}";
    }
}
